import {request} from "./requestConfig.js"


// 获取所有商品列表
export function getGoodsListData(keyword, page, order){
    return request({
        url:"/goods/search/"+keyword+"/" + page +"/" +order,
    })
}


export function getKeywordGoodsCountData(keyword){
    return request({
        url:"/goods/get_keyword_data_count/"+keyword,
    })
}

// 获取商品详情页
export function getGoodsDetail(skuId){
    return request({
        url:"/goods/"+skuId,
    })
}